// @APIVersion 1.0.0
// @Title mobile API
// @Description mobile has every tool to get any job done, so codename for the new mobile APIs.
// @Contact astaxie@gmail.com
package routers

import (
	"github.com/astaxie/beego"
	"public_security/controllers/addressbook"
	"public_security/controllers/admin"
	"public_security/controllers/article"
	"public_security/controllers/diploma"
	"public_security/controllers/navigation"
	"public_security/controllers/photogram"
	"public_security/controllers/process"
	"public_security/controllers/tabbar"
	"public_security/controllers/upload"
)

func init() {
	ns :=
		beego.NewNamespace("/v1",
			beego.NSNamespace("/user",
				beego.NSInclude(
					&admin.UserController{},
				),
			),
			beego.NSNamespace("/article",
				beego.NSInclude(
					&article.ArticleController{},
				),
			),
			beego.NSNamespace("/navigation",
				beego.NSInclude(
					&navigation.NavigationController{},
				),
			),
			beego.NSNamespace("/photogram",
				beego.NSInclude(
					&photogram.PhotogramController{},
				),
			),
			beego.NSNamespace("/process",
				beego.NSInclude(
					&process.ProcessController{},
				),
			),
			beego.NSNamespace("/diploma",
				beego.NSInclude(
					&diploma.DiplomaController{},
				),
			),
			beego.NSNamespace("/tabbar",
				beego.NSInclude(
					&tabbar.TabbarController{},
				),
			),
			beego.NSNamespace("/upload",
				beego.NSInclude(
					&upload.UploadController{},
				),
			),
			beego.NSNamespace("/about",
				beego.NSInclude(
					&admin.AboutController{},
				),
			),
			beego.NSNamespace("/addressBook",
				beego.NSInclude(
					&addressbook.AddressBookController{},
				),
			),
		)
	beego.Router("/controller", &upload.UeditorController{}, "*:ControllerUE")
	beego.AddNamespace(ns)
}
